<?php
if($error!=""){
 	?>
 	 <div id="dialog" title="Warning">
 	 	<p><?php echo $error=$login->error;?></p>
 	 </div>
 	
	<script>
		$(function () {
			$("#dialog").dialog({
				modal: true,
				draggable: false,
				resizable: false,
				buttons: {
					"Close": function () {
						$(this).dialog("close");
					}
				}
			});
		});
	</script>
	<?php }?>
